package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ ClassName SeckillFeignService
 * @ Description TODO
 * @ Author admin
 * @ Date 2021/4/14 14:30
 * @ Version 1.0
 */
@FeignClient("gulimall-seckill")
public interface SeckillFeignService {

    @GetMapping(value = "/sku/seckill/{skuId}")
    @ResponseBody
    R getSkuSeckilInfo(@PathVariable("skuId") Long skuId);
}
